<?php

use yii\db\Schema;
use yii\db\Migration;

class m170206_062349_add_app_creative_protocal_field extends Migration
{
    public function up()
    {
        return $this->addColumn('{{%creative}}', 'protocal', 'int(1) not null default 0 comment "0 for auto, 1 for http, 2 for https" after duration');
    }

    public function down()
    {
        return $this->dropColumn('{{%creative}}', 'protocal');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
